const express = require('express');

var server = express();

server.use('/aaa',function (req,res) {
    res.cookie('xuyao','daSB',{
        path:'/aaa'
    });
    res.send('OK');
    res.end();
})

server.listen(8080);